<div class="signup">
  <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
    <%= f.error_notification %>

    <div class="form-inputs">
      <%= f.input :email, required: true, autofocus: true %>
      <%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
      <%#= f.input :password_confirmation, required: true %>
    </div>

    <div class="form-actions pull-right">
      <%= f.button :submit, "注册", class: 'btn btn-primary' %>
      <%- if controller_name != 'sessions' %>
        <%= link_to "登录", new_session_path(resource_name), class: 'btn btn-success' %><br />
      <% end -%>
    </div>
  <% end %>

</div>
